package layui_mybatis.service.impl;


import layui_mybatis.entity.Province;
import layui_mybatis.mapper.ProvinceMapper;
import layui_mybatis.service.ProvinceService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhangzheng on 2020/8/19.
 */

@Service
public class ProvinceServiceImpl implements ProvinceService {

    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List getProvince() {
        List<Province> list=provinceMapper.selectProvinces();
        return list;
    }

    @Override
    public void Test(){
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"+provinceMapper.selectById(1));

    }
}
